<template>
  <el-upload
    class="avatar-uploader"
    action="#"
    :data="uploadData"
    :show-file-list="false"
    :on-success="handleAvatarSuccess"
    :before-upload="beforeAvatarUpload"
  >
    <img v-if="imageUrl" :src="imageUrl" class="avatar" />
    <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  </el-upload>
</template>
<script>
  import { GetQiniuToken } from "@/api/common"
  export default {
    name: "",
    components: {},
    data() {
      return {
        imageUrl: "",
        uploadData: {},
      }
    },
    methods: {
      handleAvatarSuccess() {},
      beforeAvatarUpload() {},
    },
  }
